import request from '@/utils/request'

// 查询数据填报列表
export function listDispatchDataEntry(query) {
  return request({
    url: '/system/dispatchDataEntry/list',
    method: 'get',
    params: query
  })
}

// 查询数据填报详细
export function getDispatchDataEntry(dataEntryId) {
  return request({
    url: '/system/dispatchDataEntry/' + dataEntryId,
    method: 'get'
  })
}

// 新增数据填报
export function addDispatchDataEntry(data) {
  return request({
    url: '/system/dispatchDataEntry',
    method: 'post',
    data: data
  })
}

// 修改数据填报
export function updateDispatchDataEntry(data) {
  return request({
    url: '/system/dispatchDataEntry',
    method: 'put',
    data: data
  })
}

// 删除数据填报
export function delDispatchDataEntry(dataEntryId) {
  return request({
    url: '/system/dispatchDataEntry/' + dataEntryId,
    method: 'delete'
  })
}
